<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>AmpleHarvest: cSolr.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">AmpleHarvest
   &#160;<span id="projectnumber">0.0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('c_solr_8php.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">cSolr.php</div>  </div>
</div>
<div class="contents">
<a href="c_solr_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002         use\ampleharvest\code\cConfig;
<a name="l00003"></a>00003         require_once dirname(dirname(dirname(dirname(__FILE__)))) . <span class="stringliteral">&#39;/config/cConfig.php&#39;</span>;
<a name="l00004"></a>00004         require_once(dirname(dirname(dirname(__FILE__)))) . <span class="stringliteral">&#39;/Tables/cTABLE_Data.php&#39;</span>;
<a name="l00005"></a>00005         require_once(dirname(dirname(dirname(__FILE__)))) . <span class="stringliteral">&#39;/cAmpleHarvestLog.php&#39;</span>;
<a name="l00006"></a>00006         require_once <span class="stringliteral">&#39;cDoc.php&#39;</span>;
<a name="l00007"></a>00007 
<a name="l00008"></a>00008         require_once cConfig::C_STR_SOLR_LIB_PATH . <span class="stringliteral">&quot;/Service-RAB.php&quot;</span>;
<a name="l00009"></a><a class="code" href="classc_solr.html">00009</a>         <span class="keyword">class </span><a class="code" href="classc_solr.html">cSolr</a> <span class="keyword">extends</span> Apache_Solr_Service_RAB
<a name="l00010"></a>00010         {
<a name="l00011"></a><a class="code" href="classc_solr.html#a6f2692dcb1d3908cfb2c8eedebf0cfb9">00011</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a6f2692dcb1d3908cfb2c8eedebf0cfb9">C_STR_FORMAT_DATE</a> = <span class="stringliteral">&quot;Y-m-d\TH:i:s\Z&quot;</span>;
<a name="l00012"></a>00012 
<a name="l00013"></a><a class="code" href="classc_solr.html#a73d7cab47d9123c1a187540710af160d">00013</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a73d7cab47d9123c1a187540710af160d">C_STR_KEY_INDEX_DATE</a> = <span class="stringliteral">&quot;index_date&quot;</span>;
<a name="l00014"></a><a class="code" href="classc_solr.html#a62163776e4769f9328cbc12669b209b1">00014</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a62163776e4769f9328cbc12669b209b1">C_STR_KEY_TITLE</a> = <span class="stringliteral">&quot;title&quot;</span>;
<a name="l00015"></a>00015 
<a name="l00016"></a><a class="code" href="classc_solr.html#aeb373eae8bb1e2d7ee99ba18578df330">00016</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#aeb373eae8bb1e2d7ee99ba18578df330">C_STR_PARAM_FACET</a> = <span class="stringliteral">&quot;facet&quot;</span>;
<a name="l00017"></a><a class="code" href="classc_solr.html#a4b285b1903eeac5680a3453cd2cc4862">00017</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a4b285b1903eeac5680a3453cd2cc4862">C_STR_PARAM_FACET_DATE</a> = <span class="stringliteral">&quot;facet.date&quot;</span>;
<a name="l00018"></a><a class="code" href="classc_solr.html#ae16b8b5798905ad60ce7e1622ba5ec54">00018</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#ae16b8b5798905ad60ce7e1622ba5ec54">C_STR_PARAM_FACET_DATE_GAP</a> = <span class="stringliteral">&quot;facet.date.gap&quot;</span>;
<a name="l00019"></a><a class="code" href="classc_solr.html#a6653566dab04feb9de7efaeee6006c32">00019</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a6653566dab04feb9de7efaeee6006c32">C_STR_PARAM_FACET_DATE_START</a> = <span class="stringliteral">&quot;facet.date.start&quot;</span>;
<a name="l00020"></a><a class="code" href="classc_solr.html#a6eafb62f411cc2839042288ba58714ff">00020</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a6eafb62f411cc2839042288ba58714ff">C_STR_PARAM_FACET_DATE_END</a> = <span class="stringliteral">&quot;facet.date.end&quot;</span>;
<a name="l00021"></a><a class="code" href="classc_solr.html#a3e172841004a3b8f91b04b0bc710326c">00021</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a3e172841004a3b8f91b04b0bc710326c">C_STR_PARAM_FACET_FIELD</a> = <span class="stringliteral">&quot;facet.field&quot;</span>;
<a name="l00022"></a><a class="code" href="classc_solr.html#a0a84e1be360d3e80803e7b4ec7b4222a">00022</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a0a84e1be360d3e80803e7b4ec7b4222a">C_STR_PARAM_FACET_LIMIT</a> = <span class="stringliteral">&quot;facet.limit&quot;</span>;
<a name="l00023"></a><a class="code" href="classc_solr.html#a6457529b704a3e39913e00d9f24e02f0">00023</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a6457529b704a3e39913e00d9f24e02f0">C_STR_PARAM_FACET_MIN_COUNT</a> = <span class="stringliteral">&quot;facet.mincount&quot;</span>;
<a name="l00024"></a><a class="code" href="classc_solr.html#a36a29ecff45aaca9d12d82a8a8989427">00024</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a36a29ecff45aaca9d12d82a8a8989427">C_STR_PARAM_HIGHLIGHT</a> = <span class="stringliteral">&quot;hl&quot;</span>;
<a name="l00025"></a><a class="code" href="classc_solr.html#afec0b9d9b87bd8e81d98ae942b79092a">00025</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#afec0b9d9b87bd8e81d98ae942b79092a">C_STR_PARAM_HIGHLIGHT_FIELDS</a> = <span class="stringliteral">&quot;hl.fl&quot;</span>;
<a name="l00026"></a><a class="code" href="classc_solr.html#aae94dfe47a3bfb350a4111e2b42f67bc">00026</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#aae94dfe47a3bfb350a4111e2b42f67bc">C_STR_PARAM_HIGHLIGHT_REQUIRE_MATCH</a> = <span class="stringliteral">&quot;hl.requireFieldMatch&quot;</span>;
<a name="l00027"></a><a class="code" href="classc_solr.html#a0bbe97c3a0cf3be4da16e2d95fc3ac69">00027</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#a0bbe97c3a0cf3be4da16e2d95fc3ac69">C_STR_PARAM_RETURN_FIELDS</a> = <span class="stringliteral">&quot;fl&quot;</span>;
<a name="l00028"></a><a class="code" href="classc_solr.html#ac805a287e72719e7fc40439c0e3105b8">00028</a>                 <span class="keyword">const</span> <a class="code" href="classc_solr.html#ac805a287e72719e7fc40439c0e3105b8">C_STR_PARAM_RETURN_SORT</a> = <span class="stringliteral">&quot;sort&quot;</span>;
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="classc_solr.html#a2c6e2acad894fdcf9d742cd262029330">00030</a>                 <span class="keyword">protected</span> <a class="code" href="classc_solr.html#a2c6e2acad894fdcf9d742cd262029330">$m_obj_TABLE_Data</a> = null;
<a name="l00031"></a><a class="code" href="classc_solr.html#a37aaa0b4692043a751c56d5941c4117f">00031</a>                 <span class="keyword">protected</span> <a class="code" href="classc_solr.html#a37aaa0b4692043a751c56d5941c4117f">$m_obj_Log</a> = null;
<a name="l00032"></a><a class="code" href="classc_solr.html#a8350fd7aa08c0544a5ccc5f1d4b534b1">00032</a>                 <span class="keyword">protected</span> <a class="code" href="classc_solr.html#a8350fd7aa08c0544a5ccc5f1d4b534b1">$m_bool_Rebuild</a> = <span class="keyword">false</span>;
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="classc_solr.html#a1c29e8fffe4c5010b555b799178f6311">00034</a>                 <span class="keyword">protected</span> <a class="code" href="classc_solr.html#a1c29e8fffe4c5010b555b799178f6311">$m_arr_DB_Update</a> = array();
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="classc_solr.html#a095c5d389db211932136b53f25f39685">00036</a>                 <span class="keyword">function</span> <a class="code" href="classc_solr.html#a095c5d389db211932136b53f25f39685">__construct</a>()
<a name="l00037"></a>00037                 {
<a name="l00038"></a>00038                         $this-&gt;m_obj_Log = <span class="keyword">new</span> <a class="code" href="classc_ample_harvest_log.html" title="Includes Path Info Class.">cAmpleHarvestLog</a>();
<a name="l00039"></a>00039                         $this-&gt;m_obj_TABLE_Data = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___data.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Data</a>();
<a name="l00040"></a>00040 
<a name="l00041"></a>00041                         <span class="comment">//Solr setup</span>
<a name="l00042"></a>00042                         $this-&gt;m_obj_Log-&gt;do_Log(<a class="code" href="classc_ample_harvest_log.html#a3150abb695e4662d01e6636819682b68">cAmpleHarvestLog::C_STR_ACTION_DATA_INDEX_INFO</a>,
<a name="l00043"></a>00043                                 <span class="stringliteral">&quot;Connecting to Solr Server &quot;</span>,
<a name="l00044"></a>00044                                 <a class="code" href="classc_ample_harvest_log.html#ae2d3ca37a2eb6eb97e48f2e3d6389641">cAmpleHarvestLog::C_INT_LEVEL_DEBUG</a>);
<a name="l00045"></a>00045                         $this-&gt;m_obj_Log-&gt;do_Log(cAmpleHarvestLog::c_str_ACTION_VALUE,
<a name="l00046"></a>00046                                 <span class="stringliteral">&quot;Host - &quot;</span> . cConfig::C_STR_SOLR_HOST,
<a name="l00047"></a>00047                                 <a class="code" href="classc_ample_harvest_log.html#ae2d3ca37a2eb6eb97e48f2e3d6389641">cAmpleHarvestLog::C_INT_LEVEL_DEBUG</a>);
<a name="l00048"></a>00048                         $this-&gt;m_obj_Log-&gt;do_Log(cAmpleHarvestLog::c_str_ACTION_VALUE,
<a name="l00049"></a>00049                                 <span class="stringliteral">&quot;Port - &quot;</span> . cConfig::C_INT_SOLR_PORT,
<a name="l00050"></a>00050                                 <a class="code" href="classc_ample_harvest_log.html#ae2d3ca37a2eb6eb97e48f2e3d6389641">cAmpleHarvestLog::C_INT_LEVEL_DEBUG</a>);
<a name="l00051"></a>00051                         $this-&gt;m_obj_Log-&gt;do_Log(cAmpleHarvestLog::c_str_ACTION_VALUE,
<a name="l00052"></a>00052                                 <span class="stringliteral">&quot;Path - &quot;</span> . cConfig::C_STR_SOLR_SVR_PATH,
<a name="l00053"></a>00053                                 <a class="code" href="classc_ample_harvest_log.html#ae2d3ca37a2eb6eb97e48f2e3d6389641">cAmpleHarvestLog::C_INT_LEVEL_DEBUG</a>);
<a name="l00054"></a>00054 
<a name="l00055"></a>00055                         <a class="code" href="classc_solr.html#a095c5d389db211932136b53f25f39685">parent::__construct</a>(cConfig::C_STR_SOLR_HOST, cConfig::C_INT_SOLR_PORT, cConfig::C_STR_SOLR_SVR_PATH);
<a name="l00056"></a>00056 
<a name="l00057"></a>00057                         <span class="keywordflow">if</span> (!$this-&gt;ping())
<a name="l00058"></a>00058                         {
<a name="l00059"></a>00059                                 $this-&gt;m_obj_Log-&gt;do_Log(<a class="code" href="classc_ample_harvest_log.html#a4b89308bc165d171ae8ccdf48387d316">cAmpleHarvestLog::C_STR_ACTION_DATA_INDEX_ERROR</a>,
<a name="l00060"></a>00060                                         <span class="stringliteral">&quot;Solr Server is not responding&quot;</span>,
<a name="l00061"></a>00061                                         <a class="code" href="classc_ample_harvest_log.html#a483d683544db816b71891ee1a3010568">cAmpleHarvestLog::C_INT_LEVEL_ERRORS</a>);
<a name="l00062"></a>00062                                 <span class="keywordflow">throw</span> <span class="keyword">new</span> Exception(<span class="stringliteral">&quot;Solr Server is not responding&quot;</span>);
<a name="l00063"></a>00063                         }
<a name="l00064"></a>00064                 }
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="classc_solr.html#ac1c62b1216da6fc0edb6b526b98c02ad">00066</a>                 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="classc_solr.html#ac1c62b1216da6fc0edb6b526b98c02ad">load_AHDoc</a>($obj_Doc)
<a name="l00067"></a>00067                 {
<a name="l00068"></a>00068                         set_time_limit(30);
<a name="l00069"></a>00069                         <span class="comment">//print(&quot;Check &quot;.__FILE__.&quot; - &quot;.__LINE__.&quot;\n&quot;.PHP_EOL);</span>
<a name="l00070"></a>00070 
<a name="l00071"></a>00071                         $obj_SolrDoc = <span class="keyword">new</span> <a class="code" href="classc_doc.html">cDoc</a>();
<a name="l00072"></a>00072 
<a name="l00073"></a>00073                         <span class="keywordflow">if</span> (!$obj_SolrDoc-&gt;load_FromJson($obj_Doc))
<a name="l00074"></a>00074                         {
<a name="l00075"></a>00075                                 <span class="keywordflow">throw</span> <span class="keyword">new</span> Exception(<span class="stringliteral">&quot;Failed to create Solr Document from Json&quot;</span>);
<a name="l00076"></a>00076                         }
<a name="l00077"></a>00077 
<a name="l00078"></a>00078                         <span class="keywordflow">return</span> $obj_SolrDoc-&gt;get_Solr_Document();
<a name="l00079"></a>00079                 }
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="classc_solr.html#a7c6a5c279d01336256defac1b50af63e">00081</a>                 <span class="keyword">protected</span> <span class="keyword">function</span> <a class="code" href="classc_solr.html#a7c6a5c279d01336256defac1b50af63e">update_StatusSuccess</a>()
<a name="l00082"></a>00082                 {
<a name="l00083"></a>00083                         <span class="keywordflow">foreach</span> ($this-&gt;m_arr_DB_Update as $arr_Update)
<a name="l00084"></a>00084                         {
<a name="l00085"></a>00085                                 $this-&gt;m_obj_TABLE_Data-&gt;clear();
<a name="l00086"></a>00086                                 $this-&gt;m_obj_TABLE_Data-&gt;load_DataFromID($arr_Update[<span class="stringliteral">&quot;id&quot;</span>]);
<a name="l00087"></a>00087                                 $this-&gt;m_obj_TABLE_Data-&gt;set_data();
<a name="l00088"></a>00088                                 $this-&gt;m_obj_TABLE_Data-&gt;set_status(<a class="code" href="classc_t_a_b_l_e___data.html#a4e155facfa09d7bd0e17565c66afe47c">cTABLE_Data::C_INT_STATUS_INDEX_SUCCESS</a>);
<a name="l00089"></a>00089                                 $this-&gt;m_obj_TABLE_Data-&gt;set_index_token($arr_Update[<span class="stringliteral">&quot;token&quot;</span>]);
<a name="l00090"></a>00090                                 $this-&gt;m_obj_TABLE_Data-&gt;set_index_date(date(<span class="stringliteral">&quot;Y-m-d H:i:s&quot;</span>));
<a name="l00091"></a>00091 
<a name="l00092"></a>00092                                 <span class="keywordflow">if</span> (!$this-&gt;m_obj_TABLE_Data-&gt;save_Data2DB())
<a name="l00093"></a>00093                                 {
<a name="l00094"></a>00094                                         $this-&gt;m_obj_Log-&gt;do_Log(<a class="code" href="classc_ample_harvest_log.html#a4b89308bc165d171ae8ccdf48387d316">cAmpleHarvestLog::C_STR_ACTION_DATA_INDEX_ERROR</a>,
<a name="l00095"></a>00095                                                 <span class="stringliteral">&quot;Failed to update Data record to reflect the Error Status id = &quot;</span> . $arr_Update[<span class="stringliteral">&quot;id&quot;</span>],
<a name="l00096"></a>00096                                                 <a class="code" href="classc_ample_harvest_log.html#a483d683544db816b71891ee1a3010568">cAmpleHarvestLog::C_INT_LEVEL_ERRORS</a>);
<a name="l00097"></a>00097                                         print(<span class="stringliteral">&quot;Failed to update data Status.\n&quot;</span>);
<a name="l00098"></a>00098                                 }
<a name="l00099"></a>00099 
<a name="l00100"></a>00100                         }
<a name="l00101"></a>00101                         $this-&gt;m_arr_DB_Update = array();
<a name="l00102"></a>00102                 }
<a name="l00103"></a>00103 
<a name="l00104"></a><a class="code" href="classc_solr.html#a60cbc27fb0477a82cfd01372d95709e0">00104</a>                 <span class="keyword">protected</span> <span class="keyword">function</span> <a class="code" href="classc_solr.html#a60cbc27fb0477a82cfd01372d95709e0">update_StatusFail</a>()
<a name="l00105"></a>00105                 {
<a name="l00106"></a>00106                         <span class="keywordflow">foreach</span> ($this-&gt;m_arr_DB_Update as $arr_Update)
<a name="l00107"></a>00107                         {
<a name="l00108"></a>00108                                 $this-&gt;m_obj_TABLE_Data-&gt;clear();
<a name="l00109"></a>00109                                 $this-&gt;m_obj_TABLE_Data-&gt;load_DataFromID($arr_Update[<span class="stringliteral">&quot;id&quot;</span>]);
<a name="l00110"></a>00110                                 $this-&gt;m_obj_TABLE_Data-&gt;set_data();
<a name="l00111"></a>00111                                 $this-&gt;m_obj_TABLE_Data-&gt;set_status(<a class="code" href="classc_t_a_b_l_e___data.html#ac973438be7c79266212ec3b1285bbe98">cTABLE_Data::C_INT_STATUS_INDEX_FAIL</a>);
<a name="l00112"></a>00112 
<a name="l00113"></a>00113                                 <span class="keywordflow">if</span> (!$this-&gt;m_obj_TABLE_Data-&gt;save_Data2DB())
<a name="l00114"></a>00114                                 {
<a name="l00115"></a>00115                                         $this-&gt;m_obj_Log-&gt;do_Log(<a class="code" href="classc_ample_harvest_log.html#a4b89308bc165d171ae8ccdf48387d316">cAmpleHarvestLog::C_STR_ACTION_DATA_INDEX_ERROR</a>,
<a name="l00116"></a>00116                                                 <span class="stringliteral">&quot;Failed to update Data record to reflect the Error Status id = &quot;</span> . $arr_Update[<span class="stringliteral">&quot;id&quot;</span>],
<a name="l00117"></a>00117                                                 <a class="code" href="classc_ample_harvest_log.html#a483d683544db816b71891ee1a3010568">cAmpleHarvestLog::C_INT_LEVEL_ERRORS</a>);
<a name="l00118"></a>00118                                         print(<span class="stringliteral">&quot;Failed to update data Status.\n&quot;</span>);
<a name="l00119"></a>00119                                 }
<a name="l00120"></a>00120                         }
<a name="l00121"></a>00121                         $this-&gt;m_arr_DB_Update = array();
<a name="l00122"></a>00122                 }
<a name="l00123"></a>00123 
<a name="l00124"></a><a class="code" href="classc_solr.html#abed689d4ae1492c4a3e0897f1afec971">00124</a>                 <span class="keyword">protected</span> <span class="keyword">function</span> <a class="code" href="classc_solr.html#abed689d4ae1492c4a3e0897f1afec971">load_Pages2Update</a>($int_Chunk)
<a name="l00125"></a>00125                 {
<a name="l00126"></a>00126                         <span class="comment">//Search for all Rows that have a current status of New</span>
<a name="l00127"></a>00127                         $this-&gt;m_obj_TABLE_Data-&gt;start_Group();
<a name="l00128"></a>00128 
<a name="l00129"></a>00129                         $this-&gt;m_obj_TABLE_Data-&gt;add_ColumnQuery($this-&gt;m_obj_TABLE_Data-&gt;m_int_COL_Status, <a class="code" href="classc_t_a_b_l_e___data.html#a1d318dd9fffeeb44f21c1d900f0b8c51">cTABLE_Data::C_INT_STATUS_STAGE_1_SUCCESS</a>);
<a name="l00130"></a>00130 
<a name="l00131"></a>00131                         $this-&gt;m_obj_TABLE_Data-&gt;end_Group();
<a name="l00132"></a>00132                         <span class="comment">/*</span>
<a name="l00133"></a>00133 <span class="comment">                         $this-&gt;m_obj_TABLE_Data-&gt;start_Group(cQuery::c_str_JOIN_OR);</span>
<a name="l00134"></a>00134 <span class="comment">                                                                        </span>
<a name="l00135"></a>00135 <span class="comment">                         $this-&gt;m_obj_TABLE_Data-&gt;add_ColumnQuery($this-&gt;m_obj_TABLE_Data-&gt;m_int_COL_ProcessToken,</span>
<a name="l00136"></a>00136 <span class="comment">                         $this-&gt;m_obj_TABLE_Data-&gt;get_Column_Name($this-&gt;m_obj_TABLE_Data-&gt;m_int_COL_IndexToken),</span>
<a name="l00137"></a>00137 <span class="comment">                         cCondition::c_str_OPERATOR_NOT,</span>
<a name="l00138"></a>00138 <span class="comment">                         cQuery::c_str_JOIN_AND,</span>
<a name="l00139"></a>00139 <span class="comment">                         cCondition::C_INT_FORMAT_COLUMN);</span>
<a name="l00140"></a>00140 <span class="comment">                                                                        </span>
<a name="l00141"></a>00141 <span class="comment">                         $this-&gt;m_obj_TABLE_Data-&gt;add_ColumnQuery($this-&gt;m_obj_TABLE_Data-&gt;m_int_COL_Status,</span>
<a name="l00142"></a>00142 <span class="comment">                         cTABLE_Data::C_INT_STATUS_INDEX_SUCCESS);</span>
<a name="l00143"></a>00143 <span class="comment">                                                                        </span>
<a name="l00144"></a>00144 <span class="comment">                         $this-&gt;m_obj_TABLE_Data-&gt;end_Group();</span>
<a name="l00145"></a>00145 <span class="comment">                         */</span>
<a name="l00146"></a>00146                         $this-&gt;m_obj_TABLE_Data-&gt;set_Limit($int_Chunk);
<a name="l00147"></a>00147 
<a name="l00148"></a>00148                         <span class="keywordflow">return</span> $this-&gt;m_obj_TABLE_Data-&gt;do_Search();
<a name="l00149"></a>00149                 }
<a name="l00150"></a>00150         }
<a name="l00151"></a>00151 ?&gt;
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="c_solr_8php.html">cSolr.php</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Mon Jan 23 2012 13:34:19 for AmpleHarvest by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
